﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="editweight.aspx.cs" Inherits="pro_mis_weight_editweight" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>评权</title>
    <link href="../../../css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
                   <a href="../mislist.aspx">返回任务列表<asp:Image ID="Image1" runat="server" ImageUrl="~/images/arrowRight.png" />
             </a>
        <hr style="color: #0066FF" />
                
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="<%$ ConnectionStrings:appConnectionString %>" 
                
                 
            
                       SelectCommand="SELECT [rule].ruleid, [rule].rulename, project.endtime FROM weightmission INNER JOIN project ON weightmission.projectid = project.projectid INNER JOIN [rule] ON project.modelid = [rule].modelid WHERE (weightmission.weightmissionid = @weightmissionid) ORDER BY [rule].ruleid DESC">
                <SelectParameters>
                    <asp:QueryStringParameter Name="weightmissionid" 
                        QueryStringField="weightmissionid" DefaultValue="" />
                </SelectParameters>
            </asp:SqlDataSource>
                   序分析法进行权重分配说明：<br />序分析主要思想是根据现在有的指标体系按照您的知识进行排序，重要程度越大，排序号越小；<br />
                   然后进行序号之间的重要性比较。系统将利用序关系法算法自动算出您当前的权重.请谢您的参与! 
<asp:GridView ID="GridView1" runat="server" 
                AutoGenerateColumns="False" CellPadding="4" DataKeyNames="ruleid" 
                DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="None" PageSize="5" 
                Width="100%">
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <Columns>
                    <asp:TemplateField HeaderText="" InsertVisible="False" 
                        SortExpression="ruleid">
                        <EditItemTemplate>
                            <asp:Label ID="Label2" runat="server" Text='<%# Eval("ruleid") %>' Visible="false"></asp:Label>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("ruleid") %>' 
                                Visible="false"></asp:Label>
                        </ItemTemplate>
                        <ItemStyle Width="5px" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="rulename" HeaderText="准则名称" 
                        SortExpression="rulename" ItemStyle-HorizontalAlign="Center" >
<ItemStyle HorizontalAlign="Center"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="endtime" HeaderText="截止时间" 
                        SortExpression="endtime" />
                    <asp:TemplateField HeaderText="当前排序" ItemStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            <asp:Label ID="Label3" runat="server" Text="Label"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="排序" ItemStyle-Width="120px">
                        <ItemTemplate>
                            <asp:DropDownList ID="DropDownList1" runat="server">
                            </asp:DropDownList>
                        </ItemTemplate>

<ItemStyle Width="120px"></ItemStyle>
                    </asp:TemplateField>
                    <asp:HyperLinkField DataNavigateUrlFields="ruleid" 
                        DataNavigateUrlFormatString="editweight2.aspx?ruleid={0}" HeaderText="转到指标" 
                        Text="指标权值>>>" ItemStyle-CssClass="bacimg1">
                        <ItemStyle CssClass="bacimg1" HorizontalAlign="Right" Width="75px" ForeColor="Red" />
                    </asp:HyperLinkField>
                </Columns>
                <PagerStyle ForeColor="#003399" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <EditRowStyle BackColor="#999999" />
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            </asp:GridView>
                
            <div style="text-align: center; float:left; width:100%;">
                <hr style="color: #3399FF" />
                <asp:ImageButton ID="ImageButton1" runat="server" 
                    ImageUrl="~/images/submit.gif" onclick="ImageButton1_Click" />
                <asp:HyperLink ID="HyperLink1" runat="server" Visible="False">前去比较重要程度&gt;&gt;</asp:HyperLink>
            </div>
    </div>
    </form>
</body>
</html>
